package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService extends IService<Permission> {

    void delete(Long id);//删除

    void insert(Permission permission);//增加

    Permission get(Long id);//查一个

    List<Permission> listAll();//查所有

    void update(Permission permission);//修改

    //分页查询
    IPage<Permission> query(QueryObject qo);

    //重新加载
    void reload();

    //通过角色id找对应的权限
    List<Permission> selectByRid(Long id);
}
